package com.ywk.pattern._9_protype._9_5;

public class Resume implements Cloneable {

    private String name;
    private String age;
    private String sex;

    private WorkExperience work;

    public Resume(String name) {
        this.name = name;
        work = new WorkExperience();
    }

    //设置个人信息
    public void SetPersonlInfo(String sex, String age) {
        this.sex = sex;
        this.age = age;
    }

    //设置工作经历
    public void SetWorkExperience(String timeArea, String company) {
        this.work.setWorkDate(timeArea);
        this.work.setCompany(company);
    }

    //显示
    public void Display() {
        System.out.println(name + "\t" + age + "\t" + sex);
        System.out.println(work.getWorkDate() + "\t" + work.getCompany());
    }

    public Object Clone() throws CloneNotSupportedException {
        return (Object) this.clone();
    }


}
